package com.yunxi.model.sto;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 车辆出库计划单
 * </p>
 *
 * @author caoYong
 * @since 2019-05-20
 */
@Data
@TableName("pms_sto_stock_out_plan")
@ApiModel(value="StoStockOutPlan对象", description="车辆出库计划单")
public class StoStockOutPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "STOCK_OUT_PLAN_ID", type = IdType.UUID)
    private String stockOutPlanId;

    @ApiModelProperty(value = "出库计划单号")
    @TableField("STOCK_OUT_PLAN_NO")
    private String stockOutPlanNo;

    @ApiModelProperty(value = "组织代码")
    @TableField("ORG_CODE")
    private String orgCode;

    @ApiModelProperty(value = "车辆VIN码")
    @TableField("VIN")
    private String vin;

    @ApiModelProperty(value = "库位代码")
    @TableField("STORAGE_CODE")
    private String storageCode;

    @ApiModelProperty(value = "出库类型(VehicleOutboundPlan_OutboundType,1销售出库,2异地调拨出库,3寄售出库,4借车出库,11同城调拨出库,12送修出库,13消耗领用,14返回生产)")
    @TableField("STOCK_OUT_TYPE")
    private String stockOutType;

    @ApiModelProperty(value = "单据状态(StockOutPlan_BillState,1新建,2分配司机,3准备出库,4出库完成,5作废)")
    @TableField("BILL_STATE")
    private String billState;

    @ApiModelProperty(value = "是否打印(1是0否)")
    @TableField("IS_PRINT")
    private Integer isPrint;

    @ApiModelProperty(value = "打印时间")
    @TableField("PRINT_TIME")
    private Date printTime;

    @ApiModelProperty(value = "标签打印时间")
    @TableField("LABEL_PRINT_TIME")
    private Date labelPrintTime;

    @ApiModelProperty(value = "交货单号")
    @TableField("DELIVERY_NO")
    private String deliveryNo;

    @ApiModelProperty(value = "打单员")
    @TableField("BILL_PRINTER")
    private String billPrinter;

    @ApiModelProperty(value = "出库司机")
    @TableField("STOCK_OUT_DRIVER")
    private String stockOutDriver;

    @ApiModelProperty(value = "出库PDI检验员")
    @TableField("PDI_INSEPECTER")
    private String pdiInsepecter;

    @ApiModelProperty(value = "其它事项说明")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "修改人")
    @TableField(value = "UPDATE_BY",fill = FieldFill.UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "是否作废(1是0否)")
    @TableField("IS_DEL")
    private Integer isDel;

    @ApiModelProperty(value = "计划出库时间")
    @TableField("PLAN_STOCK_OUT_DATE")
    private Date planStockOutDate;

    @ApiModelProperty(value = "出VDC道闸时间")
    @TableField("VDC_OUT_DATE")
    private Date vdcOutDate;

    @ApiModelProperty(value = "实际出库时间")
    @TableField("STOCK_OUT_DATE")
    private Date stockOutDate;

    @ApiModelProperty(value = "发运单编号")
    @TableField("TRANSPORT_ORDER_NO")
    private String transportOrderNo;

    @ApiModelProperty(value = "发运道次")
    @TableField("SHIPPING_ROAD")
    private String shippingRoad;

    @ApiModelProperty(value = "分配司机日期")
    @TableField("RFID_DATE")
    private Date rfidDate;

    @ApiModelProperty(value = "合格证是否随车(1是,0否)")
    @TableField("IS_ON_VEHICLE")
    private Integer isOnVehicle;

    @ApiModelProperty(value = "维修单号")
    @TableField(value = "REPAIR_ORDER_NO")
    private String repairOrderNo;

}
